package com.hkyp.ss.course.provider.repository.mediate;

import com.hkyp.ss.course.provider.model.mediate.UserCourseLike;
import com.hkyp.ss.course.provider.repository.baseRepository.BaseRepository;

import java.util.List;
import java.util.Set;

public interface UserCourLikeRepository extends BaseRepository<UserCourseLike,Long> {

    UserCourseLike findByCourseId(Long courseId);
    UserCourseLike findByUserIdAndCourseId(Long userId, Long courseId);

    UserCourseLike findByUserId(Long userId);

    List<UserCourseLike>  findAllByUserIdAndCourseIdIn(Long userId, Set<Long> courseId);
}